package com.example.weatherforecast.data.city.persistence.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.fasterxml.jackson.annotation.JsonProperty

@Entity(tableName = "city_info")
data class CityInfo(
    @PrimaryKey(autoGenerate = true)
    val id: Long,
    @ColumnInfo(name = "city_id")
    val cityId: String,
    @ColumnInfo(name = "city_level")
    val cityLevel: Int,
    @ColumnInfo(name = "parent_city_id")
    val parentCityId: String,
    @ColumnInfo(name = "city_name")
    val cityName: String
)